home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 17788 < prev    next >
Encoding:
Text File  |  1996-08-05  |  989 b   |  27 lines

  1. Path: taos.arc.unm.edu!slip-1
  2. From: trobey@arc.unm.edu (Thomas H. Robey)
  3. Newsgroups: comp.os.linux.setup,comp.os.linux.misc,comp.os.linux,comp.lang.c,comp.lang.c++
  4. Subject: Re: problems with GCC
  5. Date: Wed, 17 Apr 96 13:41:27 GMT
  6. Organization: Spectra Research Institute
  7. Message-ID: <4l2se7$894_002@arc.unm.edu>
  8. References: <4l1and$iql@news.ran.es>
  9. NNTP-Posting-Host: slip-1.arc.unm.edu
  10. X-Newsreader: News Xpress Version 1.0 Beta #4
  11.  
  12. In article <4l1and$iql@news.ran.es>,
  13.    chano@ran.es (Chano G≤mez Martφnez) wrote:
  14. -First of all, I want to apologize for my awful English.
  15. -
  16. -Now, the C stuff :
  17. -
  18. -I'm trying to port a C program from Borland C++ 3.1 to GCC under
  19. -Linux.
  20. -My problem is that I can't use any function from math.h !!!
  21.  
  22. Try -lm on the link line.  The problem is that libm.a (the math library) is 
  23. not being linked into your program, so no math functions are resolved.  You 
  24. may also have to tell the linker where libm.a is located if it isn't in one of 
  25. the standard places.
  26.  
  27.